package com.example.shirospringboot.service.OrderService;

import com.example.shirospringboot.mapper.OrderMapper;
import com.example.shirospringboot.pojo.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class orderServiceImpl implements orderService {


    @Autowired
    OrderMapper orderMapper;

    @Override
    public List<Order> queryAllOrder() {
        return orderMapper.queryAllOrder();
    }

    @Override
    public List<Order> queryOrderByAuthority() {
        return orderMapper.queryOrderByAuthority();
    }

    @Override
    public int toAuthor(int id) {
        return orderMapper.toAuthor(id);
    }

    @Override
    public int toDeny(int id) {
        return orderMapper.toDeny(id);
    }
}
